package cn.com.cifi.mars.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;

import cn.com.cifi.mars.bean.vo.sys.req.EnableSysPermissionReqParam;
import cn.com.cifi.mars.bean.vo.sys.req.SaveSysPermissionReqParam;
import cn.com.cifi.mars.bean.vo.sys.req.UpdateSysPermissionReqParam;
import cn.com.cifi.mars.entity.common.SysPermission;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author yyd
 * @since 2019-09-18
 */
public interface SysPermissionService extends IService<SysPermission> {

	/**
	 * 添加菜单(权限)
	 */
	int add(SaveSysPermissionReqParam param,String name);
	/**
	 * 编辑菜单(权限)
	 */
	int update(UpdateSysPermissionReqParam param,String name);
	
	/**
	 * 禁用启用菜单(权限)
	 */
	int enable(EnableSysPermissionReqParam param);
	
	/**
	 * 查询菜单权限树
	 */
	JSONArray querySysPermissionTree(String perName,String itsApplicationCode);
}
